package mvc.gui.impl.thumbnailspanel;

import java.util.LinkedList;
import java.util.List;

import mvc.core.IMachuPicchu;
import mvc.core.impl.MachuImage;

public class ThumbnailButtonPresenter {

	private ThumbnailButton panel;
	private IMachuPicchu machu;
	private MachuImage image;

	public ThumbnailButtonPresenter(IMachuPicchu machuPicchu,
			ThumbnailButton thumbnail, MachuImage image) {
		this.panel = thumbnail;
		this.machu = machuPicchu;
		this.image = image;

	}

	/*
	 * removes the image linked to the button.
	 */
	public void removeImage() {
		List<MachuImage> list = new LinkedList<MachuImage>();
		list.add(image);
		machu.removeImage(list);
	}

}
